<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/jquery-3.1.1.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/angular.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/angular-ui-router.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body ng-app="myApp" ng-controller="Ctrl">
		
		
	</body>
	
	<script type="text/javascript">
		var app=angular.module("myApp",["ui.router"]);
		//************路由**************
		app.config(function($stateProvider,$urlRouterProvider){
			$urlRouterProvider.otherwise("/");
			
		})
		
		
		app.controller("Ctrl",function($scope,$http,$rootScope){
			$http.get("http://127.0.0.1:8070").then(function(res){
				console.log(res.data[0].fID)
			})
		})
		
	</script>
</html>
